<template>
    <transition name="fade" v-if="model">
       <div class="p-alert-box">
          <div class="alert-wrapper-NoIcon">
              <div class="content">
                <p>
                    {{content}}
                </p>
              </div>
          </div>
      </div>
    </transition>
</template>

<script>
export default {
  props: {
    width: {
      default: 640
    },
    model: {
      default: false,
      required: true
    },
    content: {
      required: true
    }
  },
  data() {
    return {
      isShow: false
    };
  },
  watch: {
    model(bool) {
      this.isShow = bool;
    }
  },
  components: {
  },
  methods: {
    cancel() {
      this.$emit("on-cancel");
    },
    ok() {
      this.$emit("on-ok");
    }
  }
};
</script>
<style lang="scss">
.p-alert-box {
  position: fixed;
  background-color: (0, 0, 0, 0.5);
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  top: 0px;
  z-index: 9;
  .p-alert-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    .content {
      padding: 30px;
      background-color: #fff;
      border-radius: 15px;
      color: #000;
      p {
        text-align: center;
        em {
          font-size: 36px;
        }
      }
    }
  }
  
  .alert-wrapper-NoIcon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    .content {
      padding: 30px;
      background-color: #fff;
      border-radius: 15px;
      color: #000;
      p {
        em {
          font-size: 36px;
        }
      }
    }
  }
}
</style>